package com.ithaohao.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private Integer code;
    private Object data;

    public static Result success(){
        return new  Result(200,"OK");
    }
    public static  Result success(Object data){
        return new Result(200,data);
    }
    public static Result error(Object data){
        return new  Result(400,data);
    }

}
